<?php
require_once("conn.php");
require_once("functions.php");
$uid = $_GET['id'];
//处理提现
if ($_POST) {
    $uid = $_POST['id'];
    $pwd = $_POST['pwd'];
    $user = $mysql->query("select * from `user` WHERE `id`={$uid}");
    if($use[0]['ban'] == -1){
        echo "<script>alert('您已被封号，无法提现')</script>";
        echo "<script>location='./logoff.php'</script>";
    }
    if($pwd == $user[0]['password']){
        session_start();
        $_SESSION['isLogin'] = 1;
        $_SESSION['username'] = $user[0]['id'];
        echo "<script>location.href='./change.php'</script>";
//		echo "<script>alert('系统正在升级,48小时后恢复提现！')</script>";
//		echo "<script>window.jsObj.readyGoNews();</script>";
    }else{
        echo "<script>alert('密码错误')</script>";
    }
}
?>
<html>
<head>
    <meta charset="UTF-8">
    <title>有妹纸登录提现</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="./assets/css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="./assets/css/login.css"/>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script>
        function changeSize() {
            var propo = $(window).width() / 640;
            $('html').css('font-size', 40 * propo + 'px');
        }
        changeSize();
        $(window).resize(function () {
            changeSize();
        });
    </script>
</head>
<body>
<div class="wrap">
    <div class="forms">
        <form method="post" name="login">
            <div class="pcl phone clearfix">
                <input name="id" type="hidden" value="<?= $uid?>">
            </div>
            <div class="pcl pwd clearfix">
                <input name="pwd" type="password" placeholder="请输入密码(6-20位字母或数字)"/>
                <span class="icon3"></span>
            </div>
    </div>
    <button id="regs_submit" class="reg" type="submit">登录提现</button>
    </form>
</div>
</body>
</html>
